//
//  Constant.h
//  TelethonMobile
//
//  Created by Cyril ALIX on 03/12/11.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#ifndef TelethonMobile_Constant_h
#define TelethonMobile_Constant_h

#define CATEGORIE_RESTAURANT    1
#define CATEGORIE_CAFE          2
#define CATEGORIE_MAGASIN       3
#define CATEGORIE_CINEMA        4
#define CATEGORIE_CULTURE       5
#define CATEGORIE_LOISIR        6
#define CATEGORIE_HOTEL         7
#define CATEGORIE_SANTE         8
#define CATEGORIE_TRANSPORT      9

#define KEY_OBJECT_NOM          @"nom"
#define KEY_OBJECT_LONGITUDE    @"long"
#define KEY_OBJECT_LATITUDE     @"lat"
#define KEY_OBJECT_CATEGORIE    @"cat"



#define URL_TOUT_LES_LIEUX    @"http://cilheo.fr/telethonMobile.php?action=list&lat=%f&long=%f&range=%f"
#define URL_LIEUX_PAR_CATEGORIE @"http://cilheo.fr/telethonMobile.php?action=list&lat=%f&long=%f&range=%f&category=%d"
#define URL_AJOUT_LIEU  @"http://cilheo.fr/teMLoMlethonMobile.php?action=insert&nom=%@&cat=%d&lat=%f&long=%f"


#endif
